package vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;

import javax.swing.ButtonGroup;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JSeparator;
import javax.swing.JTextField;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VOrdenReparacion extends javax.swing.JFrame {
	private JPanel panCliente;
	private JLabel lblTituloCliente;
	private JLabel lblCodigoOrden;
	private JLabel lblIngrMensualesCliente;
	private JLabel lblMontoOrden;
	private JTextField txtOrden;
	private JButton btnModificarOrden;
	private JTextField txtNombreCliente;
	private JComboBox cmbTaller;
	private JLabel lblEstadoOrden;
	private JLabel lblCodigoSiniestro;
	private JTextField txtDescripcion;
	private JLabel lblDireccionCliente;
	private JTextField txtEstadoOrden;
	private JButton btnSalirOrden;
	private JButton btnCancelarOrden;
	private JButton btnEliminarOrden;
	private JButton btnGuardarOrden;
	private JLabel lblTaller;
	private JTextField txtCodigoOrden;
	private JSeparator sptTituloCliente;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				VOrdenReparacion inst = new VOrdenReparacion();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public VOrdenReparacion() {
		super("Cliente");
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			this.setTitle("Orden de Reparación");
			{
				panCliente = new JPanel();
				getContentPane().add(panCliente, BorderLayout.CENTER);
				panCliente.setLayout(null);
				panCliente.setBackground(new java.awt.Color(17,139,235));
				panCliente.setFont(new java.awt.Font("Bitstream Charter",0,14));
				panCliente.setPreferredSize(new java.awt.Dimension(853, 564));
				{
					lblTituloCliente = new JLabel();
					panCliente.add(lblTituloCliente);
					lblTituloCliente.setText("Orden de Reparación");
					lblTituloCliente.setBounds(348, 7, 224, 21);
					lblTituloCliente.setFont(new java.awt.Font("Andika Basic",1,18));
				}
				{
					sptTituloCliente = new JSeparator();
					panCliente.add(sptTituloCliente);
					sptTituloCliente.setBounds(209, 34, 502, 10);
				}
				{
					lblCodigoOrden = new JLabel();
					panCliente.add(lblCodigoOrden);
					lblCodigoOrden.setText("Codigo de la Orden de Reparación:");
					lblCodigoOrden.setBounds(77, 92, 235, 15);
					lblCodigoOrden.setFont(new java.awt.Font("Bitstream Charter",0,14));
				}
				{
					txtCodigoOrden = new JTextField();
					panCliente.add(txtCodigoOrden);
					txtCodigoOrden.setBounds(307, 89, 157, 22);
				}
				{
					lblTaller = new JLabel();
					panCliente.add(lblTaller);
					lblTaller.setText("Taller:");
					lblTaller.setBounds(497, 126, 140, 15);
					lblTaller.setFont(new java.awt.Font("Bitstream Charter",0,14));
				}
				{
					lblIngrMensualesCliente = new JLabel();
					panCliente.add(lblIngrMensualesCliente);
					lblIngrMensualesCliente.setBounds(53, 291, 179, 15);
				}
				{
					lblMontoOrden = new JLabel();
					panCliente.add(lblMontoOrden);
					lblMontoOrden.setText("Monto total:");
					lblMontoOrden.setBounds(86, 309, 172, 15);
				}
				{
					txtOrden = new JTextField();
					panCliente.add(txtOrden);
					txtOrden.setBounds(208, 306, 136, 22);
				}
				{
					btnGuardarOrden = new JButton();
					panCliente.add(btnGuardarOrden);
					btnGuardarOrden.setText("Registrar Orden");
					btnGuardarOrden.setBounds(86, 419, 155, 37);
					btnGuardarOrden.setBackground(new java.awt.Color(165,42,42));
				}
				{
					btnModificarOrden = new JButton();
					panCliente.add(btnModificarOrden);
					btnModificarOrden.setText("Modificar");
					btnModificarOrden.setBounds(272, 419, 108, 37);
					btnModificarOrden.setBackground(new java.awt.Color(173,216,230));
				}
				{
					btnEliminarOrden = new JButton();
					panCliente.add(btnEliminarOrden);
					btnEliminarOrden.setText("Eliminar");
					btnEliminarOrden.setBounds(410, 419, 100, 37);
					btnEliminarOrden.setBackground(new java.awt.Color(173,216,230));
				}
				{
					btnCancelarOrden = new JButton();
					panCliente.add(btnCancelarOrden);
					btnCancelarOrden.setText("Cancelar");
					btnCancelarOrden.setBounds(542, 419, 104, 37);
					btnCancelarOrden.setBackground(new java.awt.Color(173,216,230));
				}
				{
					btnSalirOrden = new JButton();
					panCliente.add(btnSalirOrden);
					btnSalirOrden.setText("Salir");
					btnSalirOrden.setBounds(703, 419, 95, 38);
					btnSalirOrden.setBackground(new java.awt.Color(173,216,230));
				}
				{
					txtNombreCliente = new JTextField();
					panCliente.add(txtNombreCliente);
					txtNombreCliente.setBounds(307, 123, 155, 22);
				}
				{
					txtEstadoOrden = new JTextField();
					panCliente.add(txtEstadoOrden);
					txtEstadoOrden.setBounds(635, 89, 155, 22);
				}
				{
					txtDescripcion = new JTextField();
					panCliente.add(txtDescripcion);
					txtDescripcion.setBounds(146, 196, 554, 79);
				}
				{
					lblCodigoSiniestro = new JLabel();
					panCliente.add(lblCodigoSiniestro);
					lblCodigoSiniestro.setBounds(77, 126, 200, 15);
					lblCodigoSiniestro.setText("Codigo del Siniestro:");
					lblCodigoSiniestro.setFont(new java.awt.Font("Bitstream Charter",0,14));
				}
				{
					lblEstadoOrden = new JLabel();
					panCliente.add(lblEstadoOrden);
					lblEstadoOrden.setText("Estado de la Orden:");
					lblEstadoOrden.setBounds(497, 92, 144, 15);
					lblEstadoOrden.setFont(new java.awt.Font("Bitstream Charter",0,14));
				}
				{
					lblDireccionCliente = new JLabel();
					panCliente.add(lblDireccionCliente);
					lblDireccionCliente.setText("Descripcion de la reparacion:");
					lblDireccionCliente.setBounds(146, 167, 275, 23);
					lblDireccionCliente.setFont(new java.awt.Font("Bitstream Charter",0,14));
				}
				{
					ComboBoxModel cmbTallerModel = 
							new DefaultComboBoxModel(
									new String[] { "Item One", "Item Two" });
					cmbTaller = new JComboBox();
					panCliente.add(cmbTaller);
					cmbTaller.setModel(cmbTallerModel);
					cmbTaller.setBounds(635, 123, 155, 22);
				}
			}
			pack();
			this.setSize(869, 517);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

	public void addListener(ActionListener accion) {
		this.btnSalirOrden.addActionListener(accion);
	}

}
